@echo off
set self=%0
set action=%1
set image=alpine
set container_name=alpine
set network=podman
set hostname=alpine.domain
set restart=always
set program=/bin/zsh

if %action% == build (podman buildx build . -t alpine)

if %action% == stop ( podman stop %container_name% )
if %action% == rm ( 
	podman stop %container_name% 
	podman rm %container_name% 
)

if %action% == run (
	%self% rm 
	podman run --name %container_name% --hostname %hostname% --network %network%  --restart=%restart% -v .:/srv -itd %image% %program% 
)

if %action% == exec (
	podman exec -it %image% %program% 
)
